package com.accp.electronicdocumentmanagementsystem.action;

import com.accp.electronicdocumentmanagementsystem.biz.Categorbiz;
import com.accp.electronicdocumentmanagementsystem.pojo.Categor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/categor")
public class Categoraction {

    @Autowired(required = false)
    private Categorbiz categorbiz;

    @RequestMapping("/sel")
    public List<Categor> sel(){
        return categorbiz.selectAll();
    }
}
